using System;

namespace SimpleSocket.Protocols
{
    public interface IProtocol
    {
        byte[] Format(byte[] data);
        byte[] Parse(ArraySegment<byte> buffer, out int readLength);
    }
}